﻿<Page x:Class="SdbS.View_Start.Pages.Authorization"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:SdbS.View_Start.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="320" 
      d:DesignWidth="260">

    <Grid Background="White">

        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>

        <!--Кнопка выхода в начальное меню-->
        <Button Content="Назад"
                Grid.Row="0"
                Margin="7"
                HorizontalAlignment="Left"
                BorderBrush="#FF4CB034"
                BorderThickness="2"
                Background="#FFEFF5F7"
                Padding="3"
                Command="NavigationCommands.BrowseBack">

            <!--Закругленные углы-->
            <Button.Resources>
                <Style TargetType="Border">
                    <Setter Property="CornerRadius" 
                            Value="5"/>
                </Style>

            </Button.Resources>
            
        </Button>

        <!--GroupBox в элементам для авторизации-->
        <GroupBox Header="Авторизация"
                  Width="160"
                  Grid.Row="1"
                  BorderBrush="Gray"
                  BorderThickness="2"
                  Height="150"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Center"
                  FontSize="16">

            <Grid>

                <!--Сетка для элементов в GroupBox-->
                <Grid.RowDefinitions>
                    <RowDefinition Height="65"/>
                    <RowDefinition Height="75"/>
                </Grid.RowDefinitions>

                <!--Логин-->
                <TextBlock Grid.Row="0"
                           HorizontalAlignment="Left"   
                           Text="Логин:"
                           FontSize="15"
                           VerticalAlignment="Top"
                           Background="#FF4CB034"
                           Padding="3 0 3 0"
                           Foreground="White"
                           Margin="15 5 0 0"/>

                <TextBox Name="textBox_login"
                         Grid.Row="0"
                         BorderThickness="1"
                         BorderBrush="#FF4CB034"
                         Background="#FFEFF5F7"
                         HorizontalAlignment="Center" 
                         VerticalAlignment="Top" 
                         Width="120" 
                         Margin="0,30,0,0"/>

                <!--Пароль-->
                <TextBlock Grid.Row="1"
                           HorizontalAlignment="Left"   
                           Text="Пароль:" 
                           FontSize="15"
                           Foreground="White"
                           Background="#FF4CB034"
                           Padding="3 0 3 0"
                           VerticalAlignment="Top" 
                           Margin="14 0 0 0"/>

                <PasswordBox Name="passwordBox_password"
                             Grid.Row="1"
                             HorizontalAlignment="Center" 
                             VerticalAlignment="Top" 
                             Width="120" 
                             BorderBrush="#FF4CB034"
                             Background="#FFEFF5F7"
                             Margin="0,25,0,0"/>

            </Grid>

        </GroupBox>

        <!--Кнопка входа в свой аккаунт-->
        <Button Name="buttonLogin"
                Grid.Row="2"
                Margin="7"
                Height="30"
                FontSize="15"
                Content="Войти"
                VerticalAlignment="Bottom"
                Click="buttonLogin_Click"
                BorderBrush="#FF4CB034"
                BorderThickness="2"
                Background="#FFEFF5F7">

            <!--Закругленные углы-->
            <Button.Resources>
                <Style TargetType="Border">
                    <Setter Property="CornerRadius" 
                            Value="5"/>
                </Style>

            </Button.Resources>
            

        </Button>

    </Grid>
</Page>
